export const mockProjects = [
  {
    id: 1,
    name: '平衡',
    description: '平衡相关的计算和分析',
    files: [
      {
        id: '1_1',
        name: 'equilibrium.mat',
        version: '0.1',
        uploadTime: '2024-03-20 14:30:00',
        description: 'XL_V31_20',
        type: 'mat',
        images: [
          {
            url: '/images/01_equilibrium/H2_VV16_V134_65.png',
            description: '平衡磁面'
          }
        ]
      },
      {
        id: '1_2',
        name: 'equilibrium.mat',
        version: '0.2',
        uploadTime: '2024-03-20 14:30:00',
        description: 'XL_V31_20',
        type: 'mat',
        images: [
          {
            url: '/images/01_equilibrium/H2_VV16_V134_80.png',
            description: '平衡磁面'
          },
        ]
      },
      {
        id: '1_3',
        name: 'equilibrium.mat',
        version: '1.0',
        uploadTime: '2024-03-20 14:30:00',
        description: 'XL_V31_20',
        type: 'mat',
        images: [
          {
            url: '/images/01_equilibrium/XL_V31_20_g088890.00000_psirz.png',
            description: '平衡磁面'
          },
          {
            url: '/images/01_equilibrium/XL_V31_20_g088890.00000_qpsi_vs_sqrtPsiN.png',
            description: '平衡分布'
          }
        ]
      },
    ]
  },
  {
    id: 2,
    name: '加热与电流驱动',
    description: '加热与电流驱动相关的计算和分析',
    files: [
      {
        id: '3_1',
        name: 'heat.txt',
        version: '0.1',
        uploadTime: '2024-03-20 16:00:00',
        description: '加热与电流驱动',
        type: 'txt',
        images: [
          {
            url: '/images/02_heat/39BEA.png',
            description: '加热与电流驱动'
          }
        ]
      }
    ]
  },
  {
    id: 3,
    name: '高性能稳态运行',
    description: '高性能稳态运行相关的计算和分析',
    files: [
      {
        id: '3_1',
        name: 'steady_state.txt',
        version: '0.1',
        uploadTime: '2024-03-20 16:00:00',
        description: '稳态运行分析初始版本',
        type: 'txt',
        images: [
          {
            url: '/images/03_steady_state/4B671.png',
            description: '稳态运行分析图'
          }
        ]
      }
    ]
  },
  {
    id: 4,
    name: '约束与输运',
    description: '约束与输运相关的计算和分析',
    files: [
      {
        id: '4_1',
        name: 'transport.mat',
        version: '0.1',
        uploadTime: '2024-03-20 17:00:00',
        description: '输运分析初始版本',
        type: 'mat',
        images: [
          {
            url: '/images/04_transport/exl50u-scan-GLF-50-all-profile-v4.png',
            description: '输运分析图'
          }
        ]
      }
    ]
  },
  {
    id: 5,
    name: '高能粒子',
    description: '高能粒子相关的计算和分析',
    files: [
      {
        id: '5_1',
        name: 'high_energy_particle.txt',
        version: '0.1',
        uploadTime: '2024-03-20 18:00:00',
        description: '高能粒子分析初始版本',
        type: 'txt',
        images: [
          {
            url: '/images/05_high_energy_particle/C982.png',
            description: '高能粒子分析图'
          },
          {
            url: '/images/05_high_energy_particle/profiles_v0.png',
            description: '高能粒子分析图'
          },
        ]
      }
    ]
  },
  {
    id: 6,
    name: '热负荷控制',
    description: '热负荷控制相关的计算和分析',
    files: [
      {
        id: '6_1',
        name: 'heat_flux_control.txt',
        version: '0.1',
        uploadTime: '2024-03-21 09:00:00',
        description: '热负荷控制分析初始版本',
        type: 'txt',
        images: [
          {
            url: '/images/06_heat_flux_control/2.png',
            description: '热负荷控制分析图'
          }
        ]
      }
    ]
  },
  {
    id: 7,
    name: '边界瞬态热负荷控制',
    description: '边界瞬态热负荷控制相关的计算和分析',
    files: [
      {
        id: '7_1',
        name: 'boundary.txt',
        version: '0.1',
        uploadTime: '2024-03-21 10:00:00',
        description: '边界控制分析初始版本',
        type: 'txt',
        images: [
          {
            url: '/images/07_boundary/EB31.png',
            description: '边界控制分析图'
          }
        ]
      }
    ]
  },
  {
    id: 8,
    name: '氢硼反应',
    description: '氢硼反应相关的计算和分析',
    files: [
      {
        id: '8_1',
        name: 'HBreaction.txt',
        version: '0.1',
        uploadTime: '2024-03-21 11:00:00',
        description: '氢硼反应分析初始版本',
        type: 'txt',
        images: [
          {
            url: '/images/08_HBreaction/6621.png',
            description: '氢硼反应分析图'
          }
        ]
      }
    ]
  },
  {
    id: 9,
    name: '破裂预防与缓解',
    description: '破裂预防与缓解相关的计算和分析',
    files: [
      {
        id: '9_1',
        name: 'break.txt',
        version: '0.1',
        uploadTime: '2024-03-21 12:00:00',
        description: '破裂预防分析初始版本',
        type: 'txt',
        images: [
          {
            url: '/images/09_break/877D.png',
            description: '破裂预防分析图'
          }
        ]
      }
    ]
  },
  {
    id: 10,
    name: '带电粒子引出与发电',
    description: '带电粒子引出与发电相关的计算和分析',
    files: [
      {
        id: '10_1',
        name: 'generate.txt',
        version: '0.1',
        uploadTime: '2024-03-21 13:00:00',
        description: '发电分析初始版本',
        type: 'txt',
        images: [
          {
            url: '/images/10_generate/458D.png',
            description: '发电分析图'
          }
        ]
      }
    ]
  }
];

export const mockDependencies = {
  nodes: [
    { id: 'equilibrium.mat', version: '0.2', type: 'mat', projectId: 1 },    // 先进位形控制
    { id: 'heat.txt', version: '0.1', type: 'txt', projectId: 2 },       // 加热与电流驱动
    { id: 'steady_state.txt', version: '0.1', type: 'txt', projectId: 3 },// 高参数稳态运行
    { id: 'transport.mat', version: '0.1', type: 'mat', projectId: 4 },   // 约束与输运
    { id: 'high_energy_particle.txt', version: '0.1', type: 'txt', projectId: 5 }, // 高能量粒子物理
    { id: 'heat_flux_control.txt', version: '0.1', type: 'txt', projectId: 6 },    // 热负荷控制
    { id: 'boundary.txt', version: '0.1', type: 'txt', projectId: 7 },    // 边界物理
    { id: 'HBreaction.txt', version: '0.1', type: 'txt', projectId: 8 },  // 氢硼反应物理
    { id: 'break.txt', version: '0.1', type: 'txt', projectId: 9 },       // 破裂与缓解
    { id: 'generate.txt', version: '0.1', type: 'txt', projectId: 10 }    // 带电粒子引出与发电
  ],
  dependencies: [
    // 先进位形控制(tg1)的输出
    { source: 'equilibrium.mat', target: 'heat.txt' },           // -> tg2
    { source: 'equilibrium.mat', target: 'steady_state.txt' },   // -> tg3
    { source: 'equilibrium.mat', target: 'transport.mat' },      // -> tg4
    { source: 'equilibrium.mat', target: 'high_energy_particle.txt' }, // -> tg5
    { source: 'equilibrium.mat', target: 'heat_flux_control.txt' },    // -> tg6
    { source: 'equilibrium.mat', target: 'boundary.txt' },       // -> tg7
    { source: 'equilibrium.mat', target: 'HBreaction.txt' },     // -> tg8
    { source: 'equilibrium.mat', target: 'break.txt' },          // -> tg9

    // 加热与电流驱动(tg2)的输出
    { source: 'heat.txt', target: 'steady_state.txt' },      // -> tg3
    { source: 'heat.txt', target: 'transport.mat' },         // -> tg4
    { source: 'heat.txt', target: 'high_energy_particle.txt' }, // -> tg5
    { source: 'heat.txt', target: 'boundary.txt' },          // -> tg7
    { source: 'heat.txt', target: 'HBreaction.txt' },        // -> tg8
    { source: 'heat.txt', target: 'break.txt' },             // -> tg9

    // 高参数稳态运行(tg3)的输出
    { source: 'steady_state.txt', target: 'equilibrium.mat' },   // -> tg1
    { source: 'steady_state.txt', target: 'heat.txt' },      // -> tg2
    { source: 'steady_state.txt', target: 'high_energy_particle.txt' }, // -> tg5
    { source: 'steady_state.txt', target: 'boundary.txt' },  // -> tg7
    { source: 'steady_state.txt', target: 'HBreaction.txt' }, // -> tg8

    // 约束与输运(tg4)的输出
    { source: 'transport.mat', target: 'heat.txt' },         // -> tg2
    { source: 'transport.mat', target: 'steady_state.txt' }, // -> tg3
    { source: 'transport.mat', target: 'high_energy_particle.txt' }, // -> tg5
    { source: 'transport.mat', target: 'heat_flux_control.txt' },    // -> tg6
    { source: 'transport.mat', target: 'break.txt' },        // -> tg9

    // 高能量粒子物理(tg5)的输出
    { source: 'high_energy_particle.txt', target: 'heat.txt' }, // -> tg2
    { source: 'high_energy_particle.txt', target: 'HBreaction.txt' }, // -> tg8
    { source: 'high_energy_particle.txt', target: 'generate.txt' },   // -> tg10

    // 热负荷控制(tg6)的输出
    { source: 'heat_flux_control.txt', target: 'high_energy_particle.txt' }, // -> tg5
    { source: 'heat_flux_control.txt', target: 'boundary.txt' },      // -> tg7

    // 边界物理(tg7)的输出
    { source: 'boundary.txt', target: 'heat.txt' },          // -> tg2
    { source: 'boundary.txt', target: 'steady_state.txt' },  // -> tg3
    { source: 'boundary.txt', target: 'high_energy_particle.txt' }, // -> tg5

    // 氢硼反应物理(tg8)的输出
    { source: 'HBreaction.txt', target: 'heat.txt' },        // -> tg2
    { source: 'HBreaction.txt', target: 'steady_state.txt' }, // -> tg3

    // 破裂与缓解(tg9)的输出
    { source: 'break.txt', target: 'boundary.txt' }          // -> tg7

    // 带电粒子引出与发电(tg10)没有输出
  ]
}; 